<?php namespace system\middleware;
use houdunwang\middleware\build\Middleware;
class Auth implements Middleware{
	//执行中间件
	public function run($next) {
//         执行登录验证;
		if(!Session::get('admin.admin_id'))
		{
			//如果session不存在那就跳转到登录页面
			go('admin.login.index');
		}
         $next();
	}
}